package com.igeek.javase.ch02;

import java.util.Scanner;

/*
 *@author wangpeng
 *2023/7/11 19:13
 *@description TODO
 */
public class ForTest5 {
    public static void main(String[] args) {
        Scanner data = new Scanner(System.in);
        System.out.println("请输入一个数：");
        long num = data.nextLong();
        while (num != 0) {
            long a = num % 10;
            System.out.print(a);
            num = num / 10;
        }
    }
}

